<{extends "../Layout/default.html"}>
<{block name="main"}>
<div class="integral-head">
    <a class="rule" href="/user/pointRule">
        <i class="weui-icon-info-circle" style="color:#10aeff"></i><span class="s">积分规则</span>
    </a>
    <div class="number"><{$user.point}></div>
    <span class="s">当前积分</span>
</div>

<div class="formpage">
    <section>
        <header class="weui-cells__title">积分记录</header>
        <ol class="note-list">
            <{foreach $pointList as $row}>
            <li>
                <div class="weui-cell__bd">
                    <p class="u-hd_p"><{$codeConfig.pointValue[$row.source].name}></p>
                    <time class="u-time"><{$row.created}></time>
                </div>
                <div class="weui-cell__ft">
                    <span class="u-hd_plus"><{if $row.point >= 0}>+<{else}>-<{/if}>
                        <span>
                            <{if $row.point < 0}>
                            <{$row.point|@substr:1}>
                            <{else}>
                            <{$row.point}>
                            <{/if}>
                        </span>
                    </span>
                </div>
            </li>
            <{/foreach}>
        </ol>
    </section>
</div>
<{/block}>